home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19981211-19990422
/
000037_news@newsmaster….columbia.edu _Tue Dec 22 23:08:43 1998.msg
< prev
next >
Wrap
Internet Message Format
|
1999-04-21
|
8KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id XAA21336
for <kermit.misc@watsun.cc.columbia.edu>; Tue, 22 Dec 1998 23:08:43 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id XAA27783
for kermit.misc@watsun; Tue, 22 Dec 1998 23:08:42 -0500 (EST)
Path: news.columbia.edu!panix!logbridge.uoregon.edu!su-news-hub1.bbnplanet.com!news.gtei.net!news.central.agis.net!agis!news1.alltel.net!not-for-mail
From: moiaussi <moiaussi@conwaycorp.net>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: automation script calling external protocol (Zmodem)
Date: Tue, 22 Dec 1998 20:08:33 -0600
Organization: ALLTEL Internet Services
Lines: 176
Message-ID: <368050A1.6BAA0CC5@conwaycorp.net>
References: <367FD6BF.1B4D30FD@acxiom.com> <75olvt$c6l$1@apakabar.cc.columbia.edu>
NNTP-Posting-Host: 166.102.19.201
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: news1.alltel.net 914386118 4038 166.102.19.201 (23 Dec 1998 04:08:38 GMT)
X-Complaints-To: abuse@client.alltel.net
NNTP-Posting-Date: 23 Dec 1998 04:08:38 GMT
To: Jeffrey Altman <jaltman@watsun.cc.columbia.edu>
X-Mailer: Mozilla 4.5 [en] (Win98; I)
X-Accept-Language: en
Xref: news.columbia.edu comp.protocols.kermit.misc:9669
Jeffrey,
In response to the following questions:
Q: When do you start the Zmodem transfer in this script?
A: input 5 protocol? (Wildcat requet protocol type)
output z\13 ( response = z (zmodem))
Q: where is the SET PROTOCOL ZMODEM and RECEIVE commands?
A: In the .mykermrc file, the following sets protocol.
set protocol zmodem crb crz {csb %s} {csz %s} crb crz
And the receive command is innitiated from the prompt. i.e. "kermit -r"
The command "kermit -r" runs and the .mykermrc executes the following:
log session (creates a session log)
dial wildcat (the dial list has one phone #)
take wildcat (the script to automatically download the file specified).
the wildcat.ksc script will download the file when the letter "z" is
receieved
from the wildcat.ksc script but note, the following command still remain in
the script:
1 : input 60 continue? (waiting for the continue prompt)
2: output \13 (return)
3: input 5 uit? (waiting for the quit prompt)
4: output q\13 (type q and return)
5: input 5 command >> (waiting for command prompt)
6: output g\13 (type g and return to say goodbye)
7: input /n]? (are you sure you want to log of prompt)
8: output y\13 (type y to exit)
So the script bypasses lines 1-8 and when it completes execution of lines
1-8, the
"kermit -r" begins execution, but now it is out of sync since it is after
the final prompts
have been executed. see below:
RESULT:
28. output g\13 ;output using tail -f of session.log
29. input 5 /n]? ; " "
30. output y\13 ; " "
100. end ; End of UNIX section
692. ; completes .mykermrc statements
693. ; Finish up with traditional greeting.
694.
695. if < \v(ntime) 43200 echo Good Morning!
696. else if < \v(ntime) 61200 echo Good Afternoon!
697. else echo Good Evening.
Good Evening.
698.
699. End ; of C-Kermit 6.0 initialization file.; last statment in .mykermrc
Incoming: reggie.txt 26676 bytes ; now it begins the download procedure
0 ZMODEM CRC-32
1024 ZMODEM CRC-32
2048 ZMODEM CRC-32
3072 ZMODEM CRC-32
4096 ZMODEM CRC-32
5120 ZMODEM CRC-32
crz 1.00 07-23-98 finished. ; completes the download
Press [ENTER] to continue? +++ ; hang-up the modem (return to unix prompt)
OK
So the script has run somewhat out of sync. The script should allow me to type
"g"
for goodbye before it hangs up, but as soon as it begins the zmodem download,
there
is no return to the calling wildcat.ksc script. Executing the download portion
using z for zmodem causes the script to be run out of sequence.
Here are the set commands in the .mykermrc init file:
set delay 1 ; I escape back quickly
set dial display on ; I like to watch C-Kermit dial
set modem sportster ; modem type
set line /dev/term/00m ; line set
set flow-control none
set modem compression on
set modem error-correction on
set protocol zmodem crb crz {csb %s} {csz %s} crb crz
set speed 38400
set term bytesize 8
set command bytesize 8
set parity none
set term download on
set take echo on
I work with William, and hope this helps to further debug the script mis-sync
upon download using zmodem. thanks,
reggie wanza
Jeffrey Altman wrote:
> In article <367FD6BF.1B4D30FD@acxiom.com>,
> William Jones <wjones@acxiom.com> wrote:
> : We have run into a problem continuing script automation after calling
> : the external protocol (i.e., Zmodem). Due to business reasons, we
> : must use the Zmodem protocol on the remote Windows machine
> : running Wildcat BBS.
> :
> : We must automate a process of downloading (and uploading)
> : files to a remote Windows based Wildcat BBS from a UNIX
> : server running SCO Unixware 7. We are trying to use C-Kermit
> : with kermit automation scripts on the UNIX server. We have
> : purchased Zmodem from Omen Inc. (crz, csz, etc.) and also
> : two copies of the book "using C-Kermit". We have built a Kermit
> : script (wildcat.ksc) which works up to a point. We have placed the
> : command to call the kermit scriptin .mykermrc (i.e., take wildcat.ksc);
> : furthermore, we start the process by typing " kermit -nr ". It starts
> : the
> : external protocol download but we can not figure out how to turn
> : control back to the Kermit automation script after the download
> : completes . After the file is downloaded we get a Continue prompt.
> : How do we return control back from the external protocol to kermit?
> :
> : Any advice would be appreciated. Portions of the files (session.log,
> : console.log, and wildcat.ksc with p/w zzzzzz'ed out) are pasted below.
> : In summary, how do we switch back to Kermit in the automated scripts
> : after calling the external protocol?
> :
> : Regards,
> :
> : William Jones
> : Database Administrator
> : Finance Business Unit 1
> : E-Mail: wjones@acxiom.com
> : TEL # : (501) 336-1363
> : FAX# : (501) 336-3714
> :
> : "Wolves wouldn't succeed if they didn't work as a team,
> : and when they're not hunting, they play."
> :
> : **********************************
> : *****START OF wildcat.ksh *****
> : **********************************
> : ;set input timeout quit
> : set input echo off
> : input 30 name?
> : output snowman\13
> : input 30 name?
> : output \13
> : input 30 password?
> : output zzzzzzz\13
> : input 5 command >>
> : output f\13
> : input 5 command >>
> : output l\13
> : input 5 uit?
> : output d\13
> : input 5 ?
> : output reggie.txt\13
> : input 5 ?
> : output \13
> : input 5 command?
> : output d\13
> : input 5 protocol?
> : output z\13
> : input 60 continue?
> : output \13
> : input 5 uit?
> : output q\13
> : input 5 command >>
> : output g\13
> : input 5 n]?
> : output y\13
> :
> : *******************************
> : *****END OF wildcat.ksh *****
> : *******************************
>
> When do you start the Zmodem transfer in this script?
> where is the SET PROTOCOL ZMODEM and RECEIVE commands?
>
> Jeffrey Altman * Sr.Software Designer * Kermit-95 for Win32 and OS/2
> The Kermit Project * Columbia University
> 612 West 115th St #716 * New York, NY * 10025
> http://www.kermit-project.org/k95.html * kermit-support@kermit-project.org